package ProduceConsumeProblems;

public class PCTest {
	    public static  void main (String[] args){ 
	    	ProducerAndConsumer queue=new ProducerAndConsumer(); 
	        Runnable p=new Producer(queue); 
	        Runnable c=new Consumer(queue); 
	        Thread t1=new Thread(p); 
	        Thread t2=new Thread(c);
	        Thread t3=new Thread(p);
	        Thread t4=new Thread(c);
	        t1.start(); 
	        t2.start(); 
	        t3.start();
	        t4.start();
	    }
} 
